import React, { Component } from 'react';

// import { Link } from 'react-router-dom';

import Title from '../component/title.jsx';

class App extends Component {

  constructor(props) {
    super(props);

    this.goPath = this.goPath.bind(this);
  }

  goPath(pathname) {
    this.props.history.replace(pathname);
  }
  render() {
    return (
      <div >
        <Title/>
        <button onClick={() => this.goPath('/home')} >index</button>
      </div>
    );
  }
}

export default App;
